/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp.gui.tabs.statistics;

import fwdisp.gui.moduls.SecRowPanel;
import java.awt.BorderLayout;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;

/**
 *
 * @author rbs
 */
public class WeekDayStatisticsPanel extends SecRowPanel{

    public WeekDayStatisticsPanel() {
        setName("Tage");

        setLayout(new BorderLayout());


        DefaultCategoryDataset dataset = new DefaultCategoryDataset();
        dataset.addValue(17, "", "Mo");
        dataset.addValue(15, "", "Di");
        dataset.addValue(12, "", "Mi");
        dataset.addValue(9, "", "Do");
        dataset.addValue(8, "", "Fr");
        dataset.addValue(10, "", "Sa");
        dataset.addValue(5, "", "So");
        

       JFreeChart chart = ChartFactory.createBarChart3D("Wochentagsübersicht",
               "Wocentag", "Einsätze", dataset,
               PlotOrientation.VERTICAL, false, false, false);

       chart.setBackgroundPaint(getBackground());

       ChartPanel panel = new ChartPanel(chart);
       panel.setPopupMenu(null);
       add(panel, BorderLayout.CENTER);
    }


}
